package org.com.behavioralPattern.observerPattern;

/**
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/27 16:38
 */
public class ChangeColorObserver implements ClickableObserver {
    @Override
    public void clicked(Clickable clickable) {
        Button b=(Button) clickable;
        b.color="红色";
    }
}
